package com.tanhua.domain.mongo;/*
 *FileName:  Voice
 * Author:   ASUS
 * Date  :   2021/5/21 13:42
 * */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable {
    private static final long serialVersionUID = -3136732836664933873L;

    private ObjectId id; //主键id

    private Long userId; //发语音的用户id
    private Long vid; //Long类型，用于推荐系统的模型

    private Integer state=0;  //语音的审核状态  0表示未审核   默认值

    private String gender;//发语音的用户的状态
    private String soundUrl; //语音文件url

    private Long created; //创建时间

    private Integer age; //年龄


}
